﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabBalanceAndOthers_InvestmentPlan_Item"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls">
    <Grid>
        <Grid.ColumnDefinitions>   
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        
        <vmcontrol:VMTextBox_MultiLine Text="{Binding Name, UpdateSourceTrigger = PropertyChanged}" Grid.Column="0" Margin="2"/>
        <vmcontrol:VMTextBox_Number Text="{Binding Value, UpdateSourceTrigger = PropertyChanged}" Grid.Column="1" Margin="2"/>

        <vmcontrol:VMTextBox_MultiLine Text="{Binding Year1}" Grid.Column="2" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding Year2}" Grid.Column="3" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding Year3}" Grid.Column="4" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding Year4}" Grid.Column="5" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding Year5}" Grid.Column="6" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding UseFor}" Grid.Column="7" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding FinancingMethod}" Grid.Column="8" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Text="{Binding AdditionalRemark}" Grid.Column="9" Margin="2"/>

        <Button VerticalAlignment="Top"  OverridesDefaultStyle="True" MinHeight="0" MinWidth="0" Margin="2"  Grid.Column="10"  Name="Button_Remove" Click="Button_Remove_Click"  Focusable="False">
            <Button.Content>
                <Image Source="pack://application:,,,/Images/closex.png" Stretch="Uniform"/>
            </Button.Content>
        </Button>
    </Grid>
</UserControl>
